using Common.Enum;
using Common.NotifyEvent;

namespace SExperiment
{
	public class HRMRefTarget : NotifyPropertyChanged
	{
		private string _TargetName;

		private ERefMode _RefMode;

		private SampleTargetItem _AutoItem;

		private SampleTargetItem _ManualItem;

		public string TargetName
		{
			get
			{
				return _TargetName;
			}
			set
			{
				_TargetName = value;
			}
		}

		public ERefMode RefMode
		{
			get
			{
				return _RefMode;
			}
			set
			{
				if (_RefMode != value)
				{
					_RefMode = value;
					OnPropertyChanged("RefMode");
				}
			}
		}

		public SampleTargetItem AutoItem
		{
			get
			{
				return _AutoItem;
			}
			set
			{
				if (_AutoItem != value)
				{
					_AutoItem = value;
					OnPropertyChanged("AutoItem");
				}
			}
		}

		public SampleTargetItem ManualItem
		{
			get
			{
				return _ManualItem;
			}
			set
			{
				if (_ManualItem != value)
				{
					_ManualItem = value;
					OnPropertyChanged("ManualItem");
				}
			}
		}

		public HRMRefTarget Copy()
		{
			HRMRefTarget hRMRefTarget = new HRMRefTarget();
			hRMRefTarget.AutoItem = AutoItem;
			hRMRefTarget.ManualItem = ManualItem;
			hRMRefTarget.RefMode = RefMode;
			hRMRefTarget.TargetName = TargetName;
			return hRMRefTarget;
		}
	}
}
